
function insertStyles(serialized) {
  const className = 'css-' + serialized.name;//类名
  const rule = `.${className}{${serialized.styles}}`;
  const style = document.createElement('style');
  style.setAttribute('data-emotion', 'css');//没有什么用
  style.appendChild(document.createTextNode(rule));//style.innerHTML = rule;
  document.head.appendChild(style);
}
export default insertStyles;